package com.zhang.dubbo.api.email;

public interface EmailRpcApi {
    /**
     * 简单邮件
     *
     * @param to
     * @param subject
     * @param content
     */
    String sendSimple(String to, String subject, String content);

    /**
     * html邮件
     *
     * @param to
     * @param subject
     * @param content
     */
    void sendHtmlMail(String to, String subject, String content);

    /**
     * 带附件邮件
     *
     * @param to
     * @param subject
     * @param content
     * @param filePath
     */
    void sendAttachmentsMail(String to, String subject, String content, String filePath);

    /**
     * 带嵌套资源邮件
     *
     * @param to
     * @param subject
     * @param content
     * @param rscPath
     * @param rscId
     */
    void sendInlineResourceMail(String to, String subject, String content, String rscPath, String rscId);
}
